package com.wz.jiangsu.wangteng.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: event_query
 * @author: wangzhou
 * @create: 2023-10-31 17:30
 * @description:
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @Value("${server.port}")
    public static String port;

    @GetMapping
    public String getString(){
        System.out.println(port);
        return this.port;
    }


}
